package com.javacoo.junit.generator.maven.log;

import org.apache.maven.plugin.logging.Log;
/**
 * Maven日志实现类
 * <p>说明:</p>
 * <li></li>
 * @author duanyong@jccfc.com
 * @date 2021/1/1 8:42
 */
public class MavenLogImpl implements com.javacoo.junit.generator.logging.Log {
    private final Log mavenLog;

    MavenLogImpl(Log log) {
        mavenLog = log;
    }

    @Override
    public boolean isDebugEnabled() {
        return mavenLog.isDebugEnabled();
    }

    @Override
    public void error(String s, Throwable e) {
        mavenLog.error(s, e);
    }

    @Override
    public void error(String s) {
        mavenLog.error(s);
    }

    @Override
    public void debug(String s) {
        mavenLog.debug(s);
    }

    @Override
    public void warn(String s) {
        mavenLog.warn(s);
    }

}
